Skip to content

Reland [Clang][Cmake] fix libtool duplicate member name warnings #133850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 7, 2025

Conversation

farzonl
Copy link
Member

@farzonl farzonl commented Apr 1, 2025

fixes #133199

As of the third commit the fix to the linker missing references in Targets/DirectX.cpp found in #133776 was fixed by moving HLSLBufferLayoutBuilder.cpp to clang/lib/CodeGen/Targets/.

It fixes the circular reference issue found in #133619 for all -DBUILD_SHARED_LIBS=ON builds by removing target_link_libraries from the sub directory cmake files.

testing for amdgpu offload was done via
cmake -B ../llvm_amdgpu -S llvm -GNinja -C offload/cmake/caches/Offload.cmake -DCMAKE_BUILD_TYPE=Release

PR #132252 Created a second file that shared .cpp in clang/lib/CodeGen/CMakeLists.txt

For example There were two AMDGPU.cpp's one in TargetBuiltins and the other in Targets. Even though these were in different directories libtool warns that it might not distinguish them because they share the same base name.

There are two potential fixes. The easy fix is to rename one of them and keep one cmake file. That solution though doesn't future proof this problem in the event of a third .cpp and it seems teams want to just use the target name
#132252 (comment).

The alternative fix that this PR went with is to seperate the cmake files into their own sub directories as static libs.

@llvmbot llvmbot added clang Clang issues not falling into any other category backend:AMDGPU clang:codegen IR generation bugs: mangling, exceptions, etc. labels Apr 1, 2025
@llvmbot
Copy link
Member

llvmbot commented Apr 1, 2025

@llvm/pr-subscribers-hlsl
@llvm/pr-subscribers-clang-codegen

@llvm/pr-subscribers-clang

Author: Farzon Lotfi (farzonl)

Changes

fixes #133199

The fix to reland was moving Targets/DirectX.cpp from clang/lib/CodeGen/Targets/CMakeLists.txt back to clang/lib/CodeGen/CMakeLists.txt.

That change means that the files in clang/lib/CodeGen/Targets/CMakeLists.txt needs to be marked PARTIAL_SOURCES_INTENDED.

PR #132252 Created a second file that shared <TargetName>.cpp in clang/lib/CodeGen/CMakeLists.txt

For example There were two AMDGPU.cpp's one in TargetBuiltins and the other in Targets. Even though these were in different directories libtool warns that it might not distinguish them because they share the same base name.

There are two potential fixes. The easy fix is to rename one of them and keep one cmake file. That solution though doesn't future proof this problem in the event of a third <TargetName>.cpp and it seems teams want to just use the target name
#132252 (comment).

The alternative fix is to seperate the cmake files into their own sub directories as static libs.


Full diff: https://github.com/llvm/llvm-project/pull/133850.diff

4 Files Affected:

  • (modified) clang/lib/CodeGen/CMakeLists.txt (+13-36)
  • (modified) clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp (+1-1)
  • (added) clang/lib/CodeGen/TargetBuiltins/CMakeLists.txt (+14)
  • (added) clang/lib/CodeGen/Targets/CMakeLists.txt (+30)
diff --git a/clang/lib/CodeGen/CMakeLists.txt b/clang/lib/CodeGen/CMakeLists.txt
index ebe2fbd7db295..2bf32a6b9d8aa 100644
--- a/clang/lib/CodeGen/CMakeLists.txt
+++ b/clang/lib/CodeGen/CMakeLists.txt
@@ -116,45 +116,10 @@ add_clang_library(clangCodeGen
   PatternInit.cpp
   SanitizerMetadata.cpp
   SwiftCallingConv.cpp
-  TargetBuiltins/ARM.cpp
-  TargetBuiltins/AMDGPU.cpp
-  TargetBuiltins/Hexagon.cpp
-  TargetBuiltins/NVPTX.cpp
-  TargetBuiltins/PPC.cpp
-  TargetBuiltins/RISCV.cpp
-  TargetBuiltins/SPIR.cpp
-  TargetBuiltins/SystemZ.cpp
-  TargetBuiltins/WebAssembly.cpp
-  TargetBuiltins/X86.cpp
   TargetInfo.cpp
-  Targets/AArch64.cpp
-  Targets/AMDGPU.cpp
-  Targets/ARC.cpp
-  Targets/ARM.cpp
-  Targets/AVR.cpp
-  Targets/BPF.cpp
-  Targets/CSKY.cpp
   Targets/DirectX.cpp
-  Targets/Hexagon.cpp
-  Targets/Lanai.cpp
-  Targets/LoongArch.cpp
-  Targets/M68k.cpp
-  Targets/MSP430.cpp
-  Targets/Mips.cpp
-  Targets/NVPTX.cpp
-  Targets/PNaCl.cpp
-  Targets/PPC.cpp
-  Targets/RISCV.cpp
-  Targets/SPIR.cpp
-  Targets/Sparc.cpp
-  Targets/SystemZ.cpp
-  Targets/TCE.cpp
-  Targets/VE.cpp
-  Targets/WebAssembly.cpp
-  Targets/X86.cpp
-  Targets/XCore.cpp
   VarBypassDetector.cpp
-
+  
   DEPENDS
   vt_gen
   intrinsics_gen
@@ -170,4 +135,16 @@ add_clang_library(clangCodeGen
   clangFrontend
   clangLex
   clangSerialization
+  clangCodeGenTargetBuiltins
+  clangCodeGenTargets
+  )
+
+  target_include_directories(clangCodeGen
+    PUBLIC
+    ${CMAKE_CURRENT_SOURCE_DIR}
+    ${CMAKE_CURRENT_SOURCE_DIR}/TargetBuiltins
+    ${CMAKE_CURRENT_SOURCE_DIR}/Targets
   )
+  
+  add_subdirectory(TargetBuiltins)
+  add_subdirectory(Targets)
diff --git a/clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp b/clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp
index b56b739094ff3..577fee05d4af6 100644
--- a/clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp
+++ b/clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp
@@ -1,4 +1,4 @@
-//===------- AMDCPU.cpp - Emit LLVM Code for builtins ---------------------===//
+//===------- AMDGPU.cpp - Emit LLVM Code for builtins ---------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/clang/lib/CodeGen/TargetBuiltins/CMakeLists.txt b/clang/lib/CodeGen/TargetBuiltins/CMakeLists.txt
new file mode 100644
index 0000000000000..76be68a11d02a
--- /dev/null
+++ b/clang/lib/CodeGen/TargetBuiltins/CMakeLists.txt
@@ -0,0 +1,14 @@
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
+
+add_clang_library(clangCodeGenTargetBuiltins STATIC
+  ARM.cpp
+  AMDGPU.cpp
+  Hexagon.cpp
+  NVPTX.cpp
+  PPC.cpp
+  RISCV.cpp
+  SPIR.cpp
+  SystemZ.cpp
+  WebAssembly.cpp
+  X86.cpp
+)
diff --git a/clang/lib/CodeGen/Targets/CMakeLists.txt b/clang/lib/CodeGen/Targets/CMakeLists.txt
new file mode 100644
index 0000000000000..531a9461b7201
--- /dev/null
+++ b/clang/lib/CodeGen/Targets/CMakeLists.txt
@@ -0,0 +1,30 @@
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
+
+add_clang_library(clangCodeGenTargets STATIC
+  PARTIAL_SOURCES_INTENDED
+  AArch64.cpp
+  AMDGPU.cpp
+  ARC.cpp
+  ARM.cpp
+  AVR.cpp
+  BPF.cpp
+  CSKY.cpp
+  Hexagon.cpp
+  Lanai.cpp
+  LoongArch.cpp
+  M68k.cpp
+  MSP430.cpp
+  Mips.cpp
+  NVPTX.cpp
+  PNaCl.cpp
+  PPC.cpp
+  RISCV.cpp
+  SPIR.cpp
+  Sparc.cpp
+  SystemZ.cpp
+  TCE.cpp
+  VE.cpp
+  WebAssembly.cpp
+  X86.cpp
+  XCore.cpp
+)

@llvmbot
Copy link
Member

llvmbot commented Apr 1, 2025

@llvm/pr-subscribers-backend-amdgpu

Author: Farzon Lotfi (farzonl)

Changes

fixes #133199

The fix to reland was moving Targets/DirectX.cpp from clang/lib/CodeGen/Targets/CMakeLists.txt back to clang/lib/CodeGen/CMakeLists.txt.

That change means that the files in clang/lib/CodeGen/Targets/CMakeLists.txt needs to be marked PARTIAL_SOURCES_INTENDED.

PR #132252 Created a second file that shared <TargetName>.cpp in clang/lib/CodeGen/CMakeLists.txt

For example There were two AMDGPU.cpp's one in TargetBuiltins and the other in Targets. Even though these were in different directories libtool warns that it might not distinguish them because they share the same base name.

There are two potential fixes. The easy fix is to rename one of them and keep one cmake file. That solution though doesn't future proof this problem in the event of a third <TargetName>.cpp and it seems teams want to just use the target name
#132252 (comment).

The alternative fix is to seperate the cmake files into their own sub directories as static libs.


Full diff: https://github.com/llvm/llvm-project/pull/133850.diff

4 Files Affected:

  • (modified) clang/lib/CodeGen/CMakeLists.txt (+13-36)
  • (modified) clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp (+1-1)
  • (added) clang/lib/CodeGen/TargetBuiltins/CMakeLists.txt (+14)
  • (added) clang/lib/CodeGen/Targets/CMakeLists.txt (+30)
diff --git a/clang/lib/CodeGen/CMakeLists.txt b/clang/lib/CodeGen/CMakeLists.txt
index ebe2fbd7db295..2bf32a6b9d8aa 100644
--- a/clang/lib/CodeGen/CMakeLists.txt
+++ b/clang/lib/CodeGen/CMakeLists.txt
@@ -116,45 +116,10 @@ add_clang_library(clangCodeGen
   PatternInit.cpp
   SanitizerMetadata.cpp
   SwiftCallingConv.cpp
-  TargetBuiltins/ARM.cpp
-  TargetBuiltins/AMDGPU.cpp
-  TargetBuiltins/Hexagon.cpp
-  TargetBuiltins/NVPTX.cpp
-  TargetBuiltins/PPC.cpp
-  TargetBuiltins/RISCV.cpp
-  TargetBuiltins/SPIR.cpp
-  TargetBuiltins/SystemZ.cpp
-  TargetBuiltins/WebAssembly.cpp
-  TargetBuiltins/X86.cpp
   TargetInfo.cpp
-  Targets/AArch64.cpp
-  Targets/AMDGPU.cpp
-  Targets/ARC.cpp
-  Targets/ARM.cpp
-  Targets/AVR.cpp
-  Targets/BPF.cpp
-  Targets/CSKY.cpp
   Targets/DirectX.cpp
-  Targets/Hexagon.cpp
-  Targets/Lanai.cpp
-  Targets/LoongArch.cpp
-  Targets/M68k.cpp
-  Targets/MSP430.cpp
-  Targets/Mips.cpp
-  Targets/NVPTX.cpp
-  Targets/PNaCl.cpp
-  Targets/PPC.cpp
-  Targets/RISCV.cpp
-  Targets/SPIR.cpp
-  Targets/Sparc.cpp
-  Targets/SystemZ.cpp
-  Targets/TCE.cpp
-  Targets/VE.cpp
-  Targets/WebAssembly.cpp
-  Targets/X86.cpp
-  Targets/XCore.cpp
   VarBypassDetector.cpp
-
+  
   DEPENDS
   vt_gen
   intrinsics_gen
@@ -170,4 +135,16 @@ add_clang_library(clangCodeGen
   clangFrontend
   clangLex
   clangSerialization
+  clangCodeGenTargetBuiltins
+  clangCodeGenTargets
+  )
+
+  target_include_directories(clangCodeGen
+    PUBLIC
+    ${CMAKE_CURRENT_SOURCE_DIR}
+    ${CMAKE_CURRENT_SOURCE_DIR}/TargetBuiltins
+    ${CMAKE_CURRENT_SOURCE_DIR}/Targets
   )
+  
+  add_subdirectory(TargetBuiltins)
+  add_subdirectory(Targets)
diff --git a/clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp b/clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp
index b56b739094ff3..577fee05d4af6 100644
--- a/clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp
+++ b/clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp
@@ -1,4 +1,4 @@
-//===------- AMDCPU.cpp - Emit LLVM Code for builtins ---------------------===//
+//===------- AMDGPU.cpp - Emit LLVM Code for builtins ---------------------===//
 //
 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 // See https://llvm.org/LICENSE.txt for license information.
diff --git a/clang/lib/CodeGen/TargetBuiltins/CMakeLists.txt b/clang/lib/CodeGen/TargetBuiltins/CMakeLists.txt
new file mode 100644
index 0000000000000..76be68a11d02a
--- /dev/null
+++ b/clang/lib/CodeGen/TargetBuiltins/CMakeLists.txt
@@ -0,0 +1,14 @@
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
+
+add_clang_library(clangCodeGenTargetBuiltins STATIC
+  ARM.cpp
+  AMDGPU.cpp
+  Hexagon.cpp
+  NVPTX.cpp
+  PPC.cpp
+  RISCV.cpp
+  SPIR.cpp
+  SystemZ.cpp
+  WebAssembly.cpp
+  X86.cpp
+)
diff --git a/clang/lib/CodeGen/Targets/CMakeLists.txt b/clang/lib/CodeGen/Targets/CMakeLists.txt
new file mode 100644
index 0000000000000..531a9461b7201
--- /dev/null
+++ b/clang/lib/CodeGen/Targets/CMakeLists.txt
@@ -0,0 +1,30 @@
+include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
+
+add_clang_library(clangCodeGenTargets STATIC
+  PARTIAL_SOURCES_INTENDED
+  AArch64.cpp
+  AMDGPU.cpp
+  ARC.cpp
+  ARM.cpp
+  AVR.cpp
+  BPF.cpp
+  CSKY.cpp
+  Hexagon.cpp
+  Lanai.cpp
+  LoongArch.cpp
+  M68k.cpp
+  MSP430.cpp
+  Mips.cpp
+  NVPTX.cpp
+  PNaCl.cpp
+  PPC.cpp
+  RISCV.cpp
+  SPIR.cpp
+  Sparc.cpp
+  SystemZ.cpp
+  TCE.cpp
+  VE.cpp
+  WebAssembly.cpp
+  X86.cpp
+  XCore.cpp
+)

@farzonl farzonl requested a review from jhuber6 April 1, 2025 04:46
@farzonl
Copy link
Member Author

farzonl commented Apr 1, 2025

@vzakhari @asudarsa could I get another review.

@farzonl farzonl requested a review from nikic April 2, 2025 15:46
@farzonl farzonl self-assigned this Apr 2, 2025
@nikic
Copy link
Contributor

nikic commented Apr 2, 2025

Could you please provide some more detail on why the special DirectX handling is necessary? The commit message says something about "DirectX use of CodeGenModule as input to getHLSLType" being the reason, but I don't get why that is relevant.

@farzonl
Copy link
Member Author

farzonl commented Apr 2, 2025

Could you please provide some more detail on why the special DirectX handling is necessary? The commit message says something about "DirectX use of CodeGenModule as input to getHLSLType" being the reason, but I don't get why that is relevant.

@nikic

the DirectX target is why I originally added this

target_link_libraries(clangCodeGenTargets
  PRIVATE
  clangCodeGen
)

If I didn't add this I would get two linker errors
associated with

/usr/bin/ld: lib/libclangCodeGenTargets.a(DirectX.cpp.o): in function `(anonymous namespace)::DirectXTargetCodeGenInfo::getHLSLType(clang::CodeGen::CodeGenModule&, clang::Type const*, llvm::SmallVector<int, 12u> const*) const':
DirectX.cpp:(.text._ZNK12_GLOBAL__N_124DirectXTargetCodeGenInfo11getHLSLTypeERN5clang7CodeGen13CodeGenModuleEPKNS1_4TypeEPKN4llvm11SmallVectorIiLj12EEE+0x185): undefined reference to `clang::CodeGen::HLSLBufferLayoutBuilder::createLayoutType(clang::RecordType const*, llvm::SmallVector<int, 12u> const*)'
collect2: error: ld returned 1 exit status
[135/189] Linking CXX executable bin/clang-21

and

(.text._ZNK12_GLOBAL__N_124DirectXTargetCodeGenInfo11getHLSLTypeERN5clang7CodeGen13CodeGenModuleEPKNS1_4TypeEPKN4llvm11SmallVectorIiLj12EEE+0x185): undefined reference to `clang::CodeGen::HLSLBufferLayoutBuilder::createLayoutType(clang::RecordType const*, llvm::SmallVector<int, 12u> const*)'
collect2: error: ld returned 1 exit status
[136/189] Linking CXX executable bin/clang-repl

The problem is this adds a circular dependency so then all the builds with -DBUILD_SHARED_LIBS=ON would break.

The change I have now removes the circular dependency but then forces clangCodeGen to be PARTIAL_SOURCES_INTENDED.

I could maybe avoid this but then some stuff in DirectX.cpp need to be reorganized and I was trying to avoid a code change.

@nikic
Copy link
Contributor

nikic commented Apr 2, 2025

I don't really get why that problem is specific to DirectX though. All of these make use of CodeGen, right?

@farzonl
Copy link
Member Author

farzonl commented Apr 2, 2025

I don't really get why that problem is specific to DirectX though. All of these make use of CodeGen, right?

@nikic I see what you are asking. you want more specific on the error not that the error happened.

because of this:

HLSLBufferLayoutBuilder(CGM, "dx.Layout")
.createLayoutType(ContainedTy->getAsStructureType(), Packoffsets);

clang::CodeGen::HLSLBufferLayoutBuilder::createLayoutType(clang::RecordType const*, llvm::SmallVector<int, 12u> const*) which is used by DirectXTargetCodeGenInfo::getHLSLType is defined here clang/lib/CodeGen/HLSLBufferLayoutBuilder.cpp.

I could potentially try to move HLSLBufferLayoutBuilder to Targets directory and see if that fixes things.

If that works I'll ask @bogner or @hekota if its ok to move.

@farzonl farzonl force-pushed the fix/issue-133199 branch from d00d246 to e6ec9a3 Compare April 2, 2025 21:59
@llvmbot llvmbot added the HLSL HLSL Language Support label Apr 2, 2025
@farzonl farzonl requested a review from bogner April 2, 2025 21:59
@farzonl farzonl force-pushed the fix/issue-133199 branch 2 times, most recently from 672a5f6 to baf93dd Compare April 3, 2025 11:56
farzonl added 3 commits April 4, 2025 12:32
fixes llvm#133199

PR llvm#132252 Created a second file that shared <TargetName>.cpp in `clang/lib/CodeGen/CMakeLists.txt`

For example There were two AMDGPU.cpp's one in TargetBuiltins and the
other in Targets. Even though these were in different directories
libtool warns that it might not distinguish them because they share the same base name.

There are two fixes. The easy fix is to rename one of them and keep one
cmake file. That solution though doesn't future proof this problem in
the event of a third <TargetName>.cpp and it seems teams want to
just use the target name
llvm#132252 (comment).

The alternative fix is to seperate the cmake files into their own sub
directories. I chose to create static libraries.  It might of been
possible to build an OBJECT, but I only saw examples of $<TARGET_OBJECTS:>
in compiler-rt and test directories so assumed there was a reason it wasn't used.
… so it has to be compiled in clang/lib/CodeGen/CMakeLists.txt. This means clangCodeGenTargets needs to be PARTIAL_SOURCES_INTENDED. or clang/lib/CodeGen/Targets/DirectX.cpp needs to be moved to a different directory.
…b/CodeGen/Targets fixes things so we don't need PARTIAL_SOURCES_INTENDED and don't need to special case into the clangcodegen library
@farzonl farzonl force-pushed the fix/issue-133199 branch from baf93dd to b45f903 Compare April 4, 2025 16:32
Copy link
Member

@hekota hekota left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@farzonl
Copy link
Member Author

farzonl commented Apr 4, 2025

Awesome Thanks Helena!

@nikic are you happy with the state of this change for relanding this PR?

@nikic
Copy link
Contributor

nikic commented Apr 6, 2025

I'm still somewhat confused about why that one file in particular is problematic, but I guess if this works it's fine.

Would making these OBJECT instead of STATIC libraries avoid the issue perhaps?

@farzonl
Copy link
Member Author

farzonl commented Apr 7, 2025

Would making these OBJECT instead of STATIC libraries avoid the issue perhaps?

No OBJECT seems to cause many more linker errors. So i'm going to stick with the current solution and merge in the morning if there are no other concerns.

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitARMBuiltinExpr(unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType)
>>> referenced by CGBuiltin.cpp:65 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:65)
>>>               CGBuiltin.cpp.o:(EmitTargetArchBuiltinExpr(clang::CodeGen::CodeGenFunction*, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitAArch64BuiltinExpr(unsigned int, clang::CallExpr const*, llvm::Triple::ArchType)
>>> referenced by CGBuiltin.cpp:69 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:69)
>>>               CGBuiltin.cpp.o:(EmitTargetArchBuiltinExpr(clang::CodeGen::CodeGenFunction*, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitBPFBuiltinExpr(unsigned int, clang::CallExpr const*)
>>> referenced by CGBuiltin.cpp:72 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:72)
>>>               CGBuiltin.cpp.o:(EmitTargetArchBuiltinExpr(clang::CodeGen::CodeGenFunction*, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitX86BuiltinExpr(unsigned int, clang::CallExpr const*)
>>> referenced by CGBuiltin.cpp:75 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:75)
>>>               CGBuiltin.cpp.o:(EmitTargetArchBuiltinExpr(clang::CodeGen::CodeGenFunction*, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitPPCBuiltinExpr(unsigned int, clang::CallExpr const*)
>>> referenced by CGBuiltin.cpp:80 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:80)
>>>               CGBuiltin.cpp.o:(EmitTargetArchBuiltinExpr(clang::CodeGen::CodeGenFunction*, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitAMDGPUBuiltinExpr(unsigned int, clang::CallExpr const*)
>>> referenced by CGBuiltin.cpp:83 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:83)
>>>               CGBuiltin.cpp.o:(EmitTargetArchBuiltinExpr(clang::CodeGen::CodeGenFunction*, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType)) in archive lib/libclangCodeGen.a
>>> referenced by CGBuiltin.cpp:102 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:102)
>>>               CGBuiltin.cpp.o:(EmitTargetArchBuiltinExpr(clang::CodeGen::CodeGenFunction*, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitSystemZBuiltinExpr(unsigned int, clang::CallExpr const*)
>>> referenced by CGBuiltin.cpp:85 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:85)
>>>               CGBuiltin.cpp.o:(EmitTargetArchBuiltinExpr(clang::CodeGen::CodeGenFunction*, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitNVPTXBuiltinExpr(unsigned int, clang::CallExpr const*)
>>> referenced by CGBuiltin.cpp:88 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:88)
>>>               CGBuiltin.cpp.o:(EmitTargetArchBuiltinExpr(clang::CodeGen::CodeGenFunction*, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitWebAssemblyBuiltinExpr(unsigned int, clang::CallExpr const*)
>>> referenced by CGBuiltin.cpp:91 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:91)
>>>               CGBuiltin.cpp.o:(EmitTargetArchBuiltinExpr(clang::CodeGen::CodeGenFunction*, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitHexagonBuiltinExpr(unsigned int, clang::CallExpr const*)
>>> referenced by CGBuiltin.cpp:93 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:93)
>>>               CGBuiltin.cpp.o:(EmitTargetArchBuiltinExpr(clang::CodeGen::CodeGenFunction*, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitRISCVBuiltinExpr(unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot)
>>> referenced by CGBuiltin.cpp:96 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:96)
>>>               CGBuiltin.cpp.o:(EmitTargetArchBuiltinExpr(clang::CodeGen::CodeGenFunction*, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitSPIRVBuiltinExpr(unsigned int, clang::CallExpr const*)
>>> referenced by CGBuiltin.cpp:98 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:98)
>>>               CGBuiltin.cpp.o:(EmitTargetArchBuiltinExpr(clang::CodeGen::CodeGenFunction*, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitScalarOrConstFoldImmArg(unsigned int, unsigned int, clang::CallExpr const*)
>>> referenced by CGBuiltin.cpp:6050 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGBuiltin.cpp:6050)
>>>               CGBuiltin.cpp.o:(clang::CodeGen::CodeGenFunction::EmitBuiltinExpr(clang::GlobalDecl, unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenModule::handleCUDALaunchBoundsAttr(llvm::Function*, clang::CUDALaunchBoundsAttr const*, int*, int*, int*)
>>> referenced by CGOpenMPRuntime.cpp:5885 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:5885)
>>>               CGOpenMPRuntime.cpp.o:(clang::CodeGen::CGOpenMPRuntime::computeMinAndMaxThreadsAndTeams(clang::OMPExecutableDirective const&, clang::CodeGen::CodeGenFunction&, llvm::OpenMPIRBuilder::TargetKernelDefaultAttrs&)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenModule::handleAMDGPUFlatWorkGroupSizeAttr(llvm::Function*, clang::AMDGPUFlatWorkGroupSizeAttr const*, clang::ReqdWorkGroupSizeAttr const*, int*, int*)
>>> referenced by CGOpenMPRuntime.cpp:5888 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:5888)
>>>               CGOpenMPRuntime.cpp.o:(clang::CodeGen::CGOpenMPRuntime::computeMinAndMaxThreadsAndTeams(clang::OMPExecutableDirective const&, clang::CodeGen::CodeGenFunction&, llvm::OpenMPIRBuilder::TargetKernelDefaultAttrs&)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenModule::handleAMDGPUWavesPerEUAttr(llvm::Function*, clang::AMDGPUWavesPerEUAttr const*)
>>> referenced by CGOpenMPRuntime.cpp:5937 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGOpenMPRuntime.cpp:5937)
>>>               CGOpenMPRuntime.cpp.o:(clang::CodeGen::CGOpenMPRuntime::emitTargetOutlinedFunctionHelper(clang::OMPExecutableDirective const&, llvm::StringRef, llvm::Function*&, llvm::Constant*&, bool, clang::CodeGen::RegionCodeGenTy const&)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::computeSPIRKernelABIInfo(clang::CodeGen::CodeGenModule&, clang::CodeGen::CGFunctionInfo&)
>>> referenced by CGCall.cpp:844 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CGCall.cpp:844)
>>>               CGCall.cpp.o:(clang::CodeGen::CodeGenTypes::arrangeLLVMFunctionInfo(clang::CanQual<clang::Type>, clang::CodeGen::FnInfoOpts, llvm::ArrayRef<clang::CanQual<clang::Type>>, clang::FunctionType::ExtInfo, llvm::ArrayRef<clang::FunctionType::ExtParameterInfo>, clang::CodeGen::RequiredArgs)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitAArch64CpuSupports(llvm::ArrayRef<llvm::StringRef>)
>>> referenced by CodeGenFunction.cpp:2881 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CodeGenFunction.cpp:2881)
>>>               CodeGenFunction.cpp.o:(clang::CodeGen::CodeGenFunction::FormAArch64ResolverCondition(clang::CodeGen::CodeGenFunction::FMVResolverOption const&)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitX86CpuSupports(llvm::ArrayRef<llvm::StringRef>)
>>> referenced by CodeGenFunction.cpp:2893 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CodeGenFunction.cpp:2893)
>>>               CodeGenFunction.cpp.o:(clang::CodeGen::CodeGenFunction::FormX86ResolverCondition(clang::CodeGen::CodeGenFunction::FMVResolverOption const&)) in archive lib/libclangCodeGen.a
>>> referenced by CodeGenFunction.cpp:2899 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CodeGenFunction.cpp:2899)
>>>               CodeGenFunction.cpp.o:(clang::CodeGen::CodeGenFunction::FormX86ResolverCondition(clang::CodeGen::CodeGenFunction::FMVResolverOption const&)) in archive lib/libclangCodeGen.a

ld.lld: error: undefined symbol: clang::CodeGen::CodeGenFunction::EmitX86CpuIs(llvm::StringRef)
>>> referenced by CodeGenFunction.cpp:2895 (/mnt/DevDrive/projects/llvm-project/clang/lib/CodeGen/CodeGenFunction.cpp:2895)
>>>               CodeGenFunction.cpp.o:(clang::CodeGen::CodeGenFunction::FormX86ResolverCondition(clang::CodeGen::CodeGenFunction::FMVResolverOption const&)) in archive lib/libclangCodeGen.a

ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

@farzonl farzonl merged commit 0d71d9a into llvm:main Apr 7, 2025
12 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 7, 2025

LLVM Buildbot has detected a new failure on builder openmp-offload-amdgpu-runtime-2 running on rocm-worker-hw-02 while building clang at step 5 "compile-openmp".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/2955

Here is the relevant piece of the build log for the reference
Step 5 (compile-openmp) failure: build (failure)
...
13.767 [592/11/3998] Linking CXX shared library lib/libclangTransformer.so.21.0git
13.775 [591/11/3999] Creating library symlink lib/libclangTransformer.so
13.797 [591/10/4000] Linking CXX shared library lib/libclangStaticAnalyzerCore.so.21.0git
13.804 [590/10/4001] Creating library symlink lib/libclangStaticAnalyzerCore.so
14.022 [589/10/4002] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
14.158 [588/10/4003] Linking CXX shared library lib/libLLVMLTO.so.21.0git
14.166 [587/10/4004] Creating library symlink lib/libLLVMLTO.so
14.230 [586/10/4005] Linking CXX shared library lib/libclangStaticAnalyzerCheckers.so.21.0git
14.238 [585/10/4006] Creating library symlink lib/libclangStaticAnalyzerCheckers.so
14.302 [584/10/4007] Linking CXX shared library lib/libclangCodeGenTargets.so.21.0git
FAILED: lib/libclangCodeGenTargets.so.21.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libclangCodeGenTargets.so.21.0git -o lib/libclangCodeGenTargets.so.21.0git tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARM.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AVR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/BPF.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/CSKY.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/DirectX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/HLSLBufferLayoutBuilder.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Hexagon.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Lanai.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/LoongArch.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/M68k.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/MSP430.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Mips.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/NVPTX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PNaCl.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PPC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/RISCV.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SPIR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Sparc.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SystemZ.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/TCE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/VE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/WebAssembly.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/X86.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/XCore.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib:"  lib/libLLVMCoverage.so.21.0git  lib/libLLVMFrontendDriver.so.21.0git  lib/libLLVMFrontendHLSL.so.21.0git  lib/libLLVMLTO.so.21.0git  lib/libLLVMPasses.so.21.0git  lib/libLLVMExtensions.so.21.0git  lib/libLLVMCoroutines.so.21.0git  lib/libLLVMHipStdPar.so.21.0git  lib/libLLVMipo.so.21.0git  lib/libLLVMFrontendOpenMP.so.21.0git  lib/libLLVMFrontendOffloading.so.21.0git  lib/libLLVMLinker.so.21.0git  lib/libLLVMIRPrinter.so.21.0git  lib/libLLVMInstrumentation.so.21.0git  lib/libLLVMCodeGenTypes.so.21.0git  lib/libLLVMObjCARCOpts.so.21.0git  lib/libLLVMScalarOpts.so.21.0git  lib/libLLVMAggressiveInstCombine.so.21.0git  lib/libLLVMInstCombine.so.21.0git  lib/libLLVMTarget.so.21.0git  lib/libLLVMTransformUtils.so.21.0git  lib/libLLVMBitWriter.so.21.0git  lib/libLLVMAna
r.so.21.0git  lib/libLLVMCore.so.21.0git  lib/libLLVMMC.so.21.0git  lib/libLLVMTargetParser.so.21.0git  lib/libLLVMSupport.so.21.0git  lib/libLLVMDemangle.so.21.0git  -Wl,-rpath-link,/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib && :
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::~AMDGPUTargetCodeGenInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_123AMDGPUTargetCodeGenInfoD2Ev+0xf): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::~AMDGPUTargetCodeGenInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_123AMDGPUTargetCodeGenInfoD0Ev+0x13): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::isHomogeneousAggregateSmallEnough(clang::Type const*, unsigned long) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo33isHomogeneousAggregateSmallEnoughEPKN5clang4TypeEm+0x11): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo33isHomogeneousAggregateSmallEnoughEPKN5clang4TypeEm+0x1c): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::EmitVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, clang::CodeGen::AggValueSlot) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo9EmitVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x2a): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo9EmitVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x38): undefined reference to `clang::ASTContext::getTypeInfoInChars(clang::QualType) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo9EmitVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0xc1): undefined reference to `clang::CodeGen::emitVoidPtrVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, bool, clang::TypeInfoChars, clang::CharUnits, bool, clang::CodeGen::AggValueSlot, bool)'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::~AMDGPUABIInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_113AMDGPUABIInfoD2Ev+0xf): undefined reference to `clang::CodeGen::DefaultABIInfo::~DefaultABIInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::~AMDGPUABIInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_113AMDGPUABIInfoD0Ev+0x13): undefined reference to `clang::CodeGen::DefaultABIInfo::~DefaultABIInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::getNullPointer(clang::CodeGen::CodeGenModule const&, llvm::PointerType*, clang::QualType) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo14getNullPointerERKN5clang7CodeGen13CodeGenModuleEPN4llvm11PointerTypeENS1_8QualTypeE+0x1b): undefined reference to `clang::ASTContext::getTargetNullPointerValue(clang::QualType) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo14getNullPointerERKN5clang7CodeGen13CodeGenModuleEPN4llvm11PointerTypeENS1_8QualTypeE+0x45): undefined reference to `clang::ASTContext::getTargetAddressSpace(clang::LangAS) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::getGlobalVarAddressSpace(clang::CodeGen::CodeGenModule&, clang::VarDecl const*) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo24getGlobalVarAddressSpaceERN5clang7CodeGen13CodeGenModuleEPKNS1_7VarDeclE+0x4e): undefined reference to `clang::ASTContext::getTargetAddressSpace(clang::LangAS) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo24getGlobalVarAddressSpaceERN5clang7CodeGen13CodeGenModuleEPKNS1_7VarDeclE+0x8a): undefined reference to `clang::QualType::isNonConstantStorage(clang::ASTContext const&, bool, bool)'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo24getGlobalVarAddressSpaceERN5clang7CodeGen13CodeGenModuleEPKNS1_7VarDeclE+0xe4): undefined reference to `clang::VarDecl::hasConstantInitialization() const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::numRegsForType(clang::QualType) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x37): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x4c): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0xbc): undefined reference to `clang::Type::getUnqualifiedDesugaredType() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x106): undefined reference to `clang::TagType::getDecl() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x118): undefined reference to `clang::RecordDecl::field_begin() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x189): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x199): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::computeInfo(clang::CodeGen::CGFunctionInfo&) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x37): undefined reference to `clang::CodeGen::ABIInfo::getCXXABI() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0xae): undefined reference to `clang::CodeGen::useFirstFieldIfTransparentUnion(clang::QualType)'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x1b9): undefined reference to `clang::CodeGen::useFirstFieldIfTransparentUnion(clang::QualType)'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x1c4): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x1cf): undefined reference to `clang::CodeGen::isSingleElementStruct(clang::QualType, clang::ASTContext&)'

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 7, 2025

LLVM Buildbot has detected a new failure on builder amdgpu-offload-rhel-8-cmake-build-only running on rocm-docker-rhel-8 while building clang at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/204/builds/5686

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[7513/7739] Building CXX object tools/llvm-remarkutil/CMakeFiles/llvm-remarkutil.dir/RemarkUtil.cpp.o
[7514/7739] Building CXX object tools/llvm-rust-demangle-fuzzer/CMakeFiles/llvm-rust-demangle-fuzzer.dir/llvm-rust-demangle-fuzzer.cpp.o
[7515/7739] Building Opts.inc...
[7516/7739] Linking CXX shared library lib/libLLVMExegesisX86.so.21.0git
[7517/7739] Building CXX object tools/llvm-remarkutil/CMakeFiles/llvm-remarkutil.dir/RemarkUtilHelpers.cpp.o
[7518/7739] Building CXX object tools/llvm-remarkutil/CMakeFiles/llvm-remarkutil.dir/RemarkUtilRegistry.cpp.o
[7519/7739] Building CXX object tools/llvm-special-case-list-fuzzer/CMakeFiles/llvm-special-case-list-fuzzer.dir/special-case-list-fuzzer.cpp.o
[7520/7739] Building Opts.inc...
[7521/7739] Building Opts.inc...
[7522/7739] Linking CXX shared library lib/libclangCodeGenTargets.so.21.0git
FAILED: lib/libclangCodeGenTargets.so.21.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libclangCodeGenTargets.so.21.0git -o lib/libclangCodeGenTargets.so.21.0git tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARM.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AVR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/BPF.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/CSKY.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/DirectX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/HLSLBufferLayoutBuilder.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Hexagon.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Lanai.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/LoongArch.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/M68k.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/MSP430.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Mips.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/NVPTX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PNaCl.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PPC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/RISCV.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SPIR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Sparc.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SystemZ.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/TCE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/VE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/WebAssembly.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/X86.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/XCore.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib:"  lib/libLLVMCoverage.so.21.0git  lib/libLLVMFrontendDriver.so.21.0git  lib/libLLVMFrontendHLSL.so.21.0git  lib/libLLVMLTO.so.21.0git  lib/libLLVMPasses.so.21.0git  lib/libLLVMExtensions.so.21.0git  lib/libLLVMCoroutines.so.21.0git  lib/libLLVMHipStdPar.so.21.0git  lib/libLLVMipo.so.21.0git  lib/libLLVMFrontendOpenMP.so.21.0git  lib/libLLVMFrontendOffloading.so.21.0git  lib/libLLVMLinker.so.21.0git  lib/libLLVMIRPrinter.so.21.0git  lib/libLLVMInstrumentation.so.21.0git  lib/libLLVMCodeGenTypes.so.21.0git  lib/libLLVMObjCARCOpts.so.21.0git  lib/libLLVMScalarOpts.so.21.0git  lib/libLLVMAggressiveInstCombine.so.21.0git  lib/libLLVMInstCombine.so.21.0git  lib/libLLVMTarget.so.21.0git  lib/libLLVMTransformUtils.so.21.0git  lib/libLLVMBitWriter.so.21.0git  lib/libLLVMAnalysis.so.21.0git  lib/libLLVMProfileData.so.21.0git  lib/libLLVMObject.so.21.0git  lib/libLLVMIRReader.so.21.0git  lib/libLLVMBitReader.so.21.0git  lib/libLLVMCore.so.21.0g
arser.so.21.0git  lib/libLLVMSupport.so.21.0git  lib/libLLVMDemangle.so.21.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64TargetCodeGenInfo::~AArch64TargetCodeGenInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_124AArch64TargetCodeGenInfoD2Ev+0xb): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64TargetCodeGenInfo::~AArch64TargetCodeGenInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_124AArch64TargetCodeGenInfoD0Ev+0xf): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::WindowsAArch64TargetCodeGenInfo::~WindowsAArch64TargetCodeGenInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_131WindowsAArch64TargetCodeGenInfoD2Ev+0xb): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::WindowsAArch64TargetCodeGenInfo::~WindowsAArch64TargetCodeGenInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_131WindowsAArch64TargetCodeGenInfoD0Ev+0xf): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64ABIInfo::~AArch64ABIInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_114AArch64ABIInfoD2Ev+0xb): undefined reference to `clang::CodeGen::ABIInfo::~ABIInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64ABIInfo::~AArch64ABIInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_114AArch64ABIInfoD0Ev+0xf): undefined reference to `clang::CodeGen::ABIInfo::~ABIInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64SwiftABIInfo::~AArch64SwiftABIInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_119AArch64SwiftABIInfoD2Ev+0xb): undefined reference to `clang::CodeGen::SwiftABIInfo::~SwiftABIInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64SwiftABIInfo::~AArch64SwiftABIInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_119AArch64SwiftABIInfoD0Ev+0xf): undefined reference to `clang::CodeGen::SwiftABIInfo::~SwiftABIInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64ABIInfo::allowBFloatArgsAndRet() const':
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo21allowBFloatArgsAndRetEv+0x5): undefined reference to `clang::CodeGen::ABIInfo::getTarget() const'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `isStreamingCompatible(clang::FunctionDecl const*)':
AArch64.cpp:(.text._ZL21isStreamingCompatiblePKN5clang12FunctionDeclE+0x54): undefined reference to `clang::Type::getUnqualifiedDesugaredType() const'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64ABIInfo::EmitMSVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, clang::CodeGen::AggValueSlot) const':
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo11EmitMSVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x1f): undefined reference to `clang::CodeGen::isAggregateTypeForABI(clang::QualType)'
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo11EmitMSVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x41): undefined reference to `clang::ASTContext::getTypeInfoInChars(clang::QualType) const'
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo11EmitMSVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0xcb): undefined reference to `clang::CodeGen::emitVoidPtrVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, bool, clang::TypeInfoChars, clang::CharUnits, bool, clang::CodeGen::AggValueSlot, bool)'
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo11EmitMSVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0xec): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo11EmitMSVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x103): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::WindowsAArch64TargetCodeGenInfo::setTargetAttributes(clang::Decl const*, llvm::GlobalValue*, clang::CodeGen::CodeGenModule&) const':
AArch64.cpp:(.text._ZNK12_GLOBAL__N_131WindowsAArch64TargetCodeGenInfo19setTargetAttributesEPKN5clang4DeclEPN4llvm11GlobalValueERNS1_7CodeGen13CodeGenModuleE+0x96): undefined reference to `clang::Decl::getAttrs() const'
AArch64.cpp:(.text._ZNK12_GLOBAL__N_131WindowsAArch64TargetCodeGenInfo19setTargetAttributesEPKN5clang4DeclEPN4llvm11GlobalValueERNS1_7CodeGen13CodeGenModuleE+0x12c): undefined reference to `clang::CodeGen::TargetCodeGenInfo::setBranchProtectionFnAttributes(clang::TargetInfo::BranchProtectionInfo const&, llvm::Function&)'
AArch64.cpp:(.text._ZNK12_GLOBAL__N_131WindowsAArch64TargetCodeGenInfo19setTargetAttributesEPKN5clang4DeclEPN4llvm11GlobalValueERNS1_7CodeGen13CodeGenModuleE+0x149): undefined reference to `clang::CodeGen::TargetCodeGenInfo::addStackProbeTargetAttributes(clang::Decl const*, llvm::GlobalValue*, clang::CodeGen::CodeGenModule&) const'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64TargetCodeGenInfo::setTargetAttributes(clang::Decl const*, llvm::GlobalValue*, clang::CodeGen::CodeGenModule&) const':
AArch64.cpp:(.text._ZNK12_GLOBAL__N_124AArch64TargetCodeGenInfo19setTargetAttributesEPKN5clang4DeclEPN4llvm11GlobalValueERNS1_7CodeGen13CodeGenModuleE+0x88): undefined reference to `clang::Decl::getAttrs() const'
AArch64.cpp:(.text._ZNK12_GLOBAL__N_124AArch64TargetCodeGenInfo19setTargetAttributesEPKN5clang4DeclEPN4llvm11GlobalValueERNS1_7CodeGen13CodeGenModuleE+0x11c): undefined reference to `clang::CodeGen::TargetCodeGenInfo::setBranchProtectionFnAttributes(clang::TargetInfo::BranchProtectionInfo const&, llvm::Function&)'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `GetArmSMEInlinability(clang::FunctionDecl const*, clang::FunctionDecl const*)':
AArch64.cpp:(.text._ZL21GetArmSMEInlinabilityPKN5clang12FunctionDeclES2_+0x1a): undefined reference to `clang::IsArmStreamingFunction(clang::FunctionDecl const*, bool)'
AArch64.cpp:(.text._ZL21GetArmSMEInlinabilityPKN5clang12FunctionDeclES2_+0x2a): undefined reference to `clang::IsArmStreamingFunction(clang::FunctionDecl const*, bool)'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[7513/7739] Building CXX object tools/llvm-remarkutil/CMakeFiles/llvm-remarkutil.dir/RemarkUtil.cpp.o
[7514/7739] Building CXX object tools/llvm-rust-demangle-fuzzer/CMakeFiles/llvm-rust-demangle-fuzzer.dir/llvm-rust-demangle-fuzzer.cpp.o
[7515/7739] Building Opts.inc...
[7516/7739] Linking CXX shared library lib/libLLVMExegesisX86.so.21.0git
[7517/7739] Building CXX object tools/llvm-remarkutil/CMakeFiles/llvm-remarkutil.dir/RemarkUtilHelpers.cpp.o
[7518/7739] Building CXX object tools/llvm-remarkutil/CMakeFiles/llvm-remarkutil.dir/RemarkUtilRegistry.cpp.o
[7519/7739] Building CXX object tools/llvm-special-case-list-fuzzer/CMakeFiles/llvm-special-case-list-fuzzer.dir/special-case-list-fuzzer.cpp.o
[7520/7739] Building Opts.inc...
[7521/7739] Building Opts.inc...
[7522/7739] Linking CXX shared library lib/libclangCodeGenTargets.so.21.0git
FAILED: lib/libclangCodeGenTargets.so.21.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libclangCodeGenTargets.so.21.0git -o lib/libclangCodeGenTargets.so.21.0git tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARM.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AVR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/BPF.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/CSKY.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/DirectX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/HLSLBufferLayoutBuilder.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Hexagon.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Lanai.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/LoongArch.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/M68k.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/MSP430.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Mips.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/NVPTX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PNaCl.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PPC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/RISCV.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SPIR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Sparc.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SystemZ.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/TCE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/VE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/WebAssembly.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/X86.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/XCore.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib:"  lib/libLLVMCoverage.so.21.0git  lib/libLLVMFrontendDriver.so.21.0git  lib/libLLVMFrontendHLSL.so.21.0git  lib/libLLVMLTO.so.21.0git  lib/libLLVMPasses.so.21.0git  lib/libLLVMExtensions.so.21.0git  lib/libLLVMCoroutines.so.21.0git  lib/libLLVMHipStdPar.so.21.0git  lib/libLLVMipo.so.21.0git  lib/libLLVMFrontendOpenMP.so.21.0git  lib/libLLVMFrontendOffloading.so.21.0git  lib/libLLVMLinker.so.21.0git  lib/libLLVMIRPrinter.so.21.0git  lib/libLLVMInstrumentation.so.21.0git  lib/libLLVMCodeGenTypes.so.21.0git  lib/libLLVMObjCARCOpts.so.21.0git  lib/libLLVMScalarOpts.so.21.0git  lib/libLLVMAggressiveInstCombine.so.21.0git  lib/libLLVMInstCombine.so.21.0git  lib/libLLVMTarget.so.21.0git  lib/libLLVMTransformUtils.so.21.0git  lib/libLLVMBitWriter.so.21.0git  lib/libLLVMAnalysis.so.21.0git  lib/libLLVMProfileData.so.21.0git  lib/libLLVMObject.so.21.0git  lib/libLLVMIRReader.so.21.0git  lib/libLLVMBitReader.so.21.0git  lib/libLLVMCore.so.21.0g
arser.so.21.0git  lib/libLLVMSupport.so.21.0git  lib/libLLVMDemangle.so.21.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-8-cmake-build-only/build/lib && :
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64TargetCodeGenInfo::~AArch64TargetCodeGenInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_124AArch64TargetCodeGenInfoD2Ev+0xb): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64TargetCodeGenInfo::~AArch64TargetCodeGenInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_124AArch64TargetCodeGenInfoD0Ev+0xf): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::WindowsAArch64TargetCodeGenInfo::~WindowsAArch64TargetCodeGenInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_131WindowsAArch64TargetCodeGenInfoD2Ev+0xb): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::WindowsAArch64TargetCodeGenInfo::~WindowsAArch64TargetCodeGenInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_131WindowsAArch64TargetCodeGenInfoD0Ev+0xf): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64ABIInfo::~AArch64ABIInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_114AArch64ABIInfoD2Ev+0xb): undefined reference to `clang::CodeGen::ABIInfo::~ABIInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64ABIInfo::~AArch64ABIInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_114AArch64ABIInfoD0Ev+0xf): undefined reference to `clang::CodeGen::ABIInfo::~ABIInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64SwiftABIInfo::~AArch64SwiftABIInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_119AArch64SwiftABIInfoD2Ev+0xb): undefined reference to `clang::CodeGen::SwiftABIInfo::~SwiftABIInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64SwiftABIInfo::~AArch64SwiftABIInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_119AArch64SwiftABIInfoD0Ev+0xf): undefined reference to `clang::CodeGen::SwiftABIInfo::~SwiftABIInfo()'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64ABIInfo::allowBFloatArgsAndRet() const':
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo21allowBFloatArgsAndRetEv+0x5): undefined reference to `clang::CodeGen::ABIInfo::getTarget() const'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `isStreamingCompatible(clang::FunctionDecl const*)':
AArch64.cpp:(.text._ZL21isStreamingCompatiblePKN5clang12FunctionDeclE+0x54): undefined reference to `clang::Type::getUnqualifiedDesugaredType() const'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64ABIInfo::EmitMSVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, clang::CodeGen::AggValueSlot) const':
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo11EmitMSVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x1f): undefined reference to `clang::CodeGen::isAggregateTypeForABI(clang::QualType)'
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo11EmitMSVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x41): undefined reference to `clang::ASTContext::getTypeInfoInChars(clang::QualType) const'
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo11EmitMSVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0xcb): undefined reference to `clang::CodeGen::emitVoidPtrVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, bool, clang::TypeInfoChars, clang::CharUnits, bool, clang::CodeGen::AggValueSlot, bool)'
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo11EmitMSVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0xec): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo11EmitMSVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x103): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::WindowsAArch64TargetCodeGenInfo::setTargetAttributes(clang::Decl const*, llvm::GlobalValue*, clang::CodeGen::CodeGenModule&) const':
AArch64.cpp:(.text._ZNK12_GLOBAL__N_131WindowsAArch64TargetCodeGenInfo19setTargetAttributesEPKN5clang4DeclEPN4llvm11GlobalValueERNS1_7CodeGen13CodeGenModuleE+0x96): undefined reference to `clang::Decl::getAttrs() const'
AArch64.cpp:(.text._ZNK12_GLOBAL__N_131WindowsAArch64TargetCodeGenInfo19setTargetAttributesEPKN5clang4DeclEPN4llvm11GlobalValueERNS1_7CodeGen13CodeGenModuleE+0x12c): undefined reference to `clang::CodeGen::TargetCodeGenInfo::setBranchProtectionFnAttributes(clang::TargetInfo::BranchProtectionInfo const&, llvm::Function&)'
AArch64.cpp:(.text._ZNK12_GLOBAL__N_131WindowsAArch64TargetCodeGenInfo19setTargetAttributesEPKN5clang4DeclEPN4llvm11GlobalValueERNS1_7CodeGen13CodeGenModuleE+0x149): undefined reference to `clang::CodeGen::TargetCodeGenInfo::addStackProbeTargetAttributes(clang::Decl const*, llvm::GlobalValue*, clang::CodeGen::CodeGenModule&) const'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `(anonymous namespace)::AArch64TargetCodeGenInfo::setTargetAttributes(clang::Decl const*, llvm::GlobalValue*, clang::CodeGen::CodeGenModule&) const':
AArch64.cpp:(.text._ZNK12_GLOBAL__N_124AArch64TargetCodeGenInfo19setTargetAttributesEPKN5clang4DeclEPN4llvm11GlobalValueERNS1_7CodeGen13CodeGenModuleE+0x88): undefined reference to `clang::Decl::getAttrs() const'
AArch64.cpp:(.text._ZNK12_GLOBAL__N_124AArch64TargetCodeGenInfo19setTargetAttributesEPKN5clang4DeclEPN4llvm11GlobalValueERNS1_7CodeGen13CodeGenModuleE+0x11c): undefined reference to `clang::CodeGen::TargetCodeGenInfo::setBranchProtectionFnAttributes(clang::TargetInfo::BranchProtectionInfo const&, llvm::Function&)'
tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: In function `GetArmSMEInlinability(clang::FunctionDecl const*, clang::FunctionDecl const*)':
AArch64.cpp:(.text._ZL21GetArmSMEInlinabilityPKN5clang12FunctionDeclES2_+0x1a): undefined reference to `clang::IsArmStreamingFunction(clang::FunctionDecl const*, bool)'
AArch64.cpp:(.text._ZL21GetArmSMEInlinabilityPKN5clang12FunctionDeclES2_+0x2a): undefined reference to `clang::IsArmStreamingFunction(clang::FunctionDecl const*, bool)'

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 7, 2025

LLVM Buildbot has detected a new failure on builder amdgpu-offload-rhel-9-cmake-build-only running on rocm-docker-rhel-9 while building clang at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/205/builds/5664

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[7597/7739] Creating library symlink lib/libMLIRGPUPipelines.so
[7598/7739] Linking CXX shared library lib/libMLIRGPUToROCDLTransforms.so.21.0git
[7599/7739] Linking CXX shared library lib/libMLIRSparseTensorPipelines.so.21.0git
[7600/7739] Linking CXX shared library lib/libMLIRNVGPUTransformOps.so.21.0git
[7601/7739] Creating library symlink lib/libMLIRSparseTensorPipelines.so
[7602/7739] Creating library symlink lib/libMLIRGPUToROCDLTransforms.so
[7603/7739] Linking CXX shared library lib/libMLIRGPUTransformOps.so.21.0git
[7604/7739] Creating library symlink lib/libMLIRNVGPUTransformOps.so
[7605/7739] Creating library symlink lib/libMLIRGPUTransformOps.so
[7606/7739] Linking CXX shared library lib/libclangCodeGenTargets.so.21.0git
FAILED: lib/libclangCodeGenTargets.so.21.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libclangCodeGenTargets.so.21.0git -o lib/libclangCodeGenTargets.so.21.0git tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARM.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AVR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/BPF.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/CSKY.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/DirectX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/HLSLBufferLayoutBuilder.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Hexagon.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Lanai.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/LoongArch.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/M68k.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/MSP430.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Mips.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/NVPTX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PNaCl.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PPC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/RISCV.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SPIR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Sparc.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SystemZ.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/TCE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/VE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/WebAssembly.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/X86.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/XCore.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib:"  lib/libLLVMCoverage.so.21.0git  lib/libLLVMFrontendDriver.so.21.0git  lib/libLLVMFrontendHLSL.so.21.0git  lib/libLLVMLTO.so.21.0git  lib/libLLVMPasses.so.21.0git  lib/libLLVMExtensions.so.21.0git  lib/libLLVMCoroutines.so.21.0git  lib/libLLVMHipStdPar.so.21.0git  lib/libLLVMipo.so.21.0git  lib/libLLVMFrontendOpenMP.so.21.0git  lib/libLLVMFrontendOffloading.so.21.0git  lib/libLLVMLinker.so.21.0git  lib/libLLVMIRPrinter.so.21.0git  lib/libLLVMInstrumentation.so.21.0git  lib/libLLVMCodeGenTypes.so.21.0git  lib/libLLVMObjCARCOpts.so.21.0git  lib/libLLVMScalarOpts.so.21.0git  lib/libLLVMAggressiveInstCombine.so.21.0git  lib/libLLVMInstCombine.so.21.0git  lib/libLLVMTarget.so.21.0git  lib/libLLVMTransformUtils.so.21.0git  lib/libLLVMBitWriter.so.21.0git  lib/libLLVMAnalysis.so.
r.so.21.0git  lib/libLLVMCore.so.21.0git  lib/libLLVMMC.so.21.0git  lib/libLLVMTargetParser.so.21.0git  lib/libLLVMSupport.so.21.0git  lib/libLLVMDemangle.so.21.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib && :
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::~AMDGPUTargetCodeGenInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_123AMDGPUTargetCodeGenInfoD2Ev+0xb): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::~AMDGPUTargetCodeGenInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_123AMDGPUTargetCodeGenInfoD0Ev+0xf): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::isHomogeneousAggregateSmallEnough(clang::Type const*, unsigned long) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo33isHomogeneousAggregateSmallEnoughEPKN5clang4TypeEm+0xd): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo33isHomogeneousAggregateSmallEnoughEPKN5clang4TypeEm+0x18): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::EmitVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, clang::CodeGen::AggValueSlot) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo9EmitVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x16): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo9EmitVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x24): undefined reference to `clang::ASTContext::getTypeInfoInChars(clang::QualType) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo9EmitVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0xad): undefined reference to `clang::CodeGen::emitVoidPtrVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, bool, clang::TypeInfoChars, clang::CharUnits, bool, clang::CodeGen::AggValueSlot, bool)'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::~AMDGPUABIInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_113AMDGPUABIInfoD2Ev+0xb): undefined reference to `clang::CodeGen::DefaultABIInfo::~DefaultABIInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::~AMDGPUABIInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_113AMDGPUABIInfoD0Ev+0xf): undefined reference to `clang::CodeGen::DefaultABIInfo::~DefaultABIInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::getNullPointer(clang::CodeGen::CodeGenModule const&, llvm::PointerType*, clang::QualType) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo14getNullPointerERKN5clang7CodeGen13CodeGenModuleEPN4llvm11PointerTypeENS1_8QualTypeE+0x17): undefined reference to `clang::ASTContext::getTargetNullPointerValue(clang::QualType) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo14getNullPointerERKN5clang7CodeGen13CodeGenModuleEPN4llvm11PointerTypeENS1_8QualTypeE+0x3d): undefined reference to `clang::ASTContext::getTargetAddressSpace(clang::LangAS) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::getGlobalVarAddressSpace(clang::CodeGen::CodeGenModule&, clang::VarDecl const*) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo24getGlobalVarAddressSpaceERN5clang7CodeGen13CodeGenModuleEPKNS1_7VarDeclE+0x3c): undefined reference to `clang::ASTContext::getTargetAddressSpace(clang::LangAS) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo24getGlobalVarAddressSpaceERN5clang7CodeGen13CodeGenModuleEPKNS1_7VarDeclE+0x75): undefined reference to `clang::QualType::isNonConstantStorage(clang::ASTContext const&, bool, bool)'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo24getGlobalVarAddressSpaceERN5clang7CodeGen13CodeGenModuleEPKNS1_7VarDeclE+0xc4): undefined reference to `clang::VarDecl::hasConstantInitialization() const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::numRegsForType(clang::QualType) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x37): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x4c): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0xbc): undefined reference to `clang::Type::getUnqualifiedDesugaredType() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x106): undefined reference to `clang::TagType::getDecl() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x118): undefined reference to `clang::RecordDecl::field_begin() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x189): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x199): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::computeInfo(clang::CodeGen::CGFunctionInfo&) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x20): undefined reference to `clang::CodeGen::ABIInfo::getCXXABI() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x96): undefined reference to `clang::CodeGen::useFirstFieldIfTransparentUnion(clang::QualType)'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x1a3): undefined reference to `clang::CodeGen::useFirstFieldIfTransparentUnion(clang::QualType)'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x1ae): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x1b9): undefined reference to `clang::CodeGen::isSingleElementStruct(clang::QualType, clang::ASTContext&)'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[7597/7739] Creating library symlink lib/libMLIRGPUPipelines.so
[7598/7739] Linking CXX shared library lib/libMLIRGPUToROCDLTransforms.so.21.0git
[7599/7739] Linking CXX shared library lib/libMLIRSparseTensorPipelines.so.21.0git
[7600/7739] Linking CXX shared library lib/libMLIRNVGPUTransformOps.so.21.0git
[7601/7739] Creating library symlink lib/libMLIRSparseTensorPipelines.so
[7602/7739] Creating library symlink lib/libMLIRGPUToROCDLTransforms.so
[7603/7739] Linking CXX shared library lib/libMLIRGPUTransformOps.so.21.0git
[7604/7739] Creating library symlink lib/libMLIRNVGPUTransformOps.so
[7605/7739] Creating library symlink lib/libMLIRGPUTransformOps.so
[7606/7739] Linking CXX shared library lib/libclangCodeGenTargets.so.21.0git
FAILED: lib/libclangCodeGenTargets.so.21.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libclangCodeGenTargets.so.21.0git -o lib/libclangCodeGenTargets.so.21.0git tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARM.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AVR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/BPF.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/CSKY.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/DirectX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/HLSLBufferLayoutBuilder.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Hexagon.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Lanai.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/LoongArch.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/M68k.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/MSP430.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Mips.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/NVPTX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PNaCl.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PPC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/RISCV.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SPIR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Sparc.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SystemZ.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/TCE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/VE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/WebAssembly.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/X86.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/XCore.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib:"  lib/libLLVMCoverage.so.21.0git  lib/libLLVMFrontendDriver.so.21.0git  lib/libLLVMFrontendHLSL.so.21.0git  lib/libLLVMLTO.so.21.0git  lib/libLLVMPasses.so.21.0git  lib/libLLVMExtensions.so.21.0git  lib/libLLVMCoroutines.so.21.0git  lib/libLLVMHipStdPar.so.21.0git  lib/libLLVMipo.so.21.0git  lib/libLLVMFrontendOpenMP.so.21.0git  lib/libLLVMFrontendOffloading.so.21.0git  lib/libLLVMLinker.so.21.0git  lib/libLLVMIRPrinter.so.21.0git  lib/libLLVMInstrumentation.so.21.0git  lib/libLLVMCodeGenTypes.so.21.0git  lib/libLLVMObjCARCOpts.so.21.0git  lib/libLLVMScalarOpts.so.21.0git  lib/libLLVMAggressiveInstCombine.so.21.0git  lib/libLLVMInstCombine.so.21.0git  lib/libLLVMTarget.so.21.0git  lib/libLLVMTransformUtils.so.21.0git  lib/libLLVMBitWriter.so.21.0git  lib/libLLVMAnalysis.so.
r.so.21.0git  lib/libLLVMCore.so.21.0git  lib/libLLVMMC.so.21.0git  lib/libLLVMTargetParser.so.21.0git  lib/libLLVMSupport.so.21.0git  lib/libLLVMDemangle.so.21.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-rhel-9-cmake-build-only/build/lib && :
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::~AMDGPUTargetCodeGenInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_123AMDGPUTargetCodeGenInfoD2Ev+0xb): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::~AMDGPUTargetCodeGenInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_123AMDGPUTargetCodeGenInfoD0Ev+0xf): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::isHomogeneousAggregateSmallEnough(clang::Type const*, unsigned long) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo33isHomogeneousAggregateSmallEnoughEPKN5clang4TypeEm+0xd): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo33isHomogeneousAggregateSmallEnoughEPKN5clang4TypeEm+0x18): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::EmitVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, clang::CodeGen::AggValueSlot) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo9EmitVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x16): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo9EmitVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x24): undefined reference to `clang::ASTContext::getTypeInfoInChars(clang::QualType) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo9EmitVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0xad): undefined reference to `clang::CodeGen::emitVoidPtrVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, bool, clang::TypeInfoChars, clang::CharUnits, bool, clang::CodeGen::AggValueSlot, bool)'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::~AMDGPUABIInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_113AMDGPUABIInfoD2Ev+0xb): undefined reference to `clang::CodeGen::DefaultABIInfo::~DefaultABIInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::~AMDGPUABIInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_113AMDGPUABIInfoD0Ev+0xf): undefined reference to `clang::CodeGen::DefaultABIInfo::~DefaultABIInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::getNullPointer(clang::CodeGen::CodeGenModule const&, llvm::PointerType*, clang::QualType) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo14getNullPointerERKN5clang7CodeGen13CodeGenModuleEPN4llvm11PointerTypeENS1_8QualTypeE+0x17): undefined reference to `clang::ASTContext::getTargetNullPointerValue(clang::QualType) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo14getNullPointerERKN5clang7CodeGen13CodeGenModuleEPN4llvm11PointerTypeENS1_8QualTypeE+0x3d): undefined reference to `clang::ASTContext::getTargetAddressSpace(clang::LangAS) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::getGlobalVarAddressSpace(clang::CodeGen::CodeGenModule&, clang::VarDecl const*) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo24getGlobalVarAddressSpaceERN5clang7CodeGen13CodeGenModuleEPKNS1_7VarDeclE+0x3c): undefined reference to `clang::ASTContext::getTargetAddressSpace(clang::LangAS) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo24getGlobalVarAddressSpaceERN5clang7CodeGen13CodeGenModuleEPKNS1_7VarDeclE+0x75): undefined reference to `clang::QualType::isNonConstantStorage(clang::ASTContext const&, bool, bool)'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo24getGlobalVarAddressSpaceERN5clang7CodeGen13CodeGenModuleEPKNS1_7VarDeclE+0xc4): undefined reference to `clang::VarDecl::hasConstantInitialization() const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::numRegsForType(clang::QualType) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x37): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x4c): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0xbc): undefined reference to `clang::Type::getUnqualifiedDesugaredType() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x106): undefined reference to `clang::TagType::getDecl() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x118): undefined reference to `clang::RecordDecl::field_begin() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x189): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x199): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::computeInfo(clang::CodeGen::CGFunctionInfo&) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x20): undefined reference to `clang::CodeGen::ABIInfo::getCXXABI() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x96): undefined reference to `clang::CodeGen::useFirstFieldIfTransparentUnion(clang::QualType)'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x1a3): undefined reference to `clang::CodeGen::useFirstFieldIfTransparentUnion(clang::QualType)'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x1ae): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x1b9): undefined reference to `clang::CodeGen::isSingleElementStruct(clang::QualType, clang::ASTContext&)'

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 7, 2025

LLVM Buildbot has detected a new failure on builder amdgpu-offload-ubuntu-22-cmake-build-only running on rocm-docker-ubu-22 while building clang at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/203/builds/6873

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/amdgpu-offload-cmake.py --jobs=32' (failure)
...
[7523/7739] Linking CXX executable bin/llvm-objdump
[7524/7739] Generating ../../bin/llvm-otool
[7525/7739] Linking CXX executable bin/llvm-profgen
[7526/7739] Linking CXX shared library lib/libLLVMAMDGPUCodeGen.so.21.0git
[7527/7739] Creating library symlink lib/libLLVMAMDGPUCodeGen.so
[7528/7739] Linking CXX executable bin/llvm-rtdyld
[7529/7739] Linking CXX executable bin/sancov
[7530/7739] Linking C executable bin/clang-fuzzer-dictionary
[7531/7739] Building CXX object tools/flang/tools/flang-driver/CMakeFiles/flang.dir/driver.cpp.o
[7532/7739] Linking CXX shared library lib/libclangCodeGenTargets.so.21.0git
FAILED: lib/libclangCodeGenTargets.so.21.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libclangCodeGenTargets.so.21.0git -o lib/libclangCodeGenTargets.so.21.0git tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARM.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AVR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/BPF.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/CSKY.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/DirectX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/HLSLBufferLayoutBuilder.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Hexagon.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Lanai.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/LoongArch.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/M68k.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/MSP430.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Mips.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/NVPTX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PNaCl.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PPC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/RISCV.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SPIR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Sparc.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SystemZ.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/TCE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/VE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/WebAssembly.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/X86.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/XCore.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib:"  lib/libLLVMCoverage.so.21.0git  lib/libLLVMFrontendDriver.so.21.0git  lib/libLLVMFrontendHLSL.so.21.0git  lib/libLLVMLTO.so.21.0git  lib/libLLVMPasses.so.21.0git  lib/libLLVMExtensions.so.21.0git  lib/libLLVMCoroutines.so.21.0git  lib/libLLVMHipStdPar.so.21.0git  lib/libLLVMipo.so.21.0git  lib/libLLVMFrontendOpenMP.so.21.0git  lib/libLLVMFrontendOffloading.so.21.0git  lib/libLLVMLinker.so.21.0git  lib/libLLVMIRPrinter.so.21.0git  lib/libLLVMInstrumentation.so.21.0git  lib/libLLVMCodeGenTypes.so.21.0git  lib/libLLVMObjCARCOpts.so.21.0git  lib/libLLVMScalarOpts.so.21.0git  lib/libLLVMAggressiveInstCombine.so.21.0git  lib/libLLVMInstCombine.so.21.0git  lib/libLLVMTarget.so.21.0git  lib/libLLVMTransformUtils.so.21.0git  lib/libLLVMBitWriter.so.21.0git  lib/libLLVMAnalys
tReader.so.21.0git  lib/libLLVMCore.so.21.0git  lib/libLLVMMC.so.21.0git  lib/libLLVMTargetParser.so.21.0git  lib/libLLVMSupport.so.21.0git  lib/libLLVMDemangle.so.21.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib && :
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::~AMDGPUTargetCodeGenInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_123AMDGPUTargetCodeGenInfoD2Ev+0xf): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::~AMDGPUTargetCodeGenInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_123AMDGPUTargetCodeGenInfoD0Ev+0x13): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::isHomogeneousAggregateSmallEnough(clang::Type const*, unsigned long) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo33isHomogeneousAggregateSmallEnoughEPKN5clang4TypeEm+0x11): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo33isHomogeneousAggregateSmallEnoughEPKN5clang4TypeEm+0x1c): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::EmitVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, clang::CodeGen::AggValueSlot) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo9EmitVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x2a): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo9EmitVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x38): undefined reference to `clang::ASTContext::getTypeInfoInChars(clang::QualType) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo9EmitVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0xc1): undefined reference to `clang::CodeGen::emitVoidPtrVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, bool, clang::TypeInfoChars, clang::CharUnits, bool, clang::CodeGen::AggValueSlot, bool)'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::~AMDGPUABIInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_113AMDGPUABIInfoD2Ev+0xf): undefined reference to `clang::CodeGen::DefaultABIInfo::~DefaultABIInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::~AMDGPUABIInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_113AMDGPUABIInfoD0Ev+0x13): undefined reference to `clang::CodeGen::DefaultABIInfo::~DefaultABIInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::getNullPointer(clang::CodeGen::CodeGenModule const&, llvm::PointerType*, clang::QualType) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo14getNullPointerERKN5clang7CodeGen13CodeGenModuleEPN4llvm11PointerTypeENS1_8QualTypeE+0x1b): undefined reference to `clang::ASTContext::getTargetNullPointerValue(clang::QualType) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo14getNullPointerERKN5clang7CodeGen13CodeGenModuleEPN4llvm11PointerTypeENS1_8QualTypeE+0x45): undefined reference to `clang::ASTContext::getTargetAddressSpace(clang::LangAS) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::getGlobalVarAddressSpace(clang::CodeGen::CodeGenModule&, clang::VarDecl const*) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo24getGlobalVarAddressSpaceERN5clang7CodeGen13CodeGenModuleEPKNS1_7VarDeclE+0x4e): undefined reference to `clang::ASTContext::getTargetAddressSpace(clang::LangAS) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo24getGlobalVarAddressSpaceERN5clang7CodeGen13CodeGenModuleEPKNS1_7VarDeclE+0x8a): undefined reference to `clang::QualType::isNonConstantStorage(clang::ASTContext const&, bool, bool)'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo24getGlobalVarAddressSpaceERN5clang7CodeGen13CodeGenModuleEPKNS1_7VarDeclE+0xe4): undefined reference to `clang::VarDecl::hasConstantInitialization() const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::numRegsForType(clang::QualType) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x37): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x4c): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0xbc): undefined reference to `clang::Type::getUnqualifiedDesugaredType() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x106): undefined reference to `clang::TagType::getDecl() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x118): undefined reference to `clang::RecordDecl::field_begin() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x189): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x199): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::computeInfo(clang::CodeGen::CGFunctionInfo&) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x37): undefined reference to `clang::CodeGen::ABIInfo::getCXXABI() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0xae): undefined reference to `clang::CodeGen::useFirstFieldIfTransparentUnion(clang::QualType)'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x1b9): undefined reference to `clang::CodeGen::useFirstFieldIfTransparentUnion(clang::QualType)'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x1c4): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x1cf): undefined reference to `clang::CodeGen::isSingleElementStruct(clang::QualType, clang::ASTContext&)'
Step 7 (build cmake config) failure: build cmake config (failure)
...
[7523/7739] Linking CXX executable bin/llvm-objdump
[7524/7739] Generating ../../bin/llvm-otool
[7525/7739] Linking CXX executable bin/llvm-profgen
[7526/7739] Linking CXX shared library lib/libLLVMAMDGPUCodeGen.so.21.0git
[7527/7739] Creating library symlink lib/libLLVMAMDGPUCodeGen.so
[7528/7739] Linking CXX executable bin/llvm-rtdyld
[7529/7739] Linking CXX executable bin/sancov
[7530/7739] Linking C executable bin/clang-fuzzer-dictionary
[7531/7739] Building CXX object tools/flang/tools/flang-driver/CMakeFiles/flang.dir/driver.cpp.o
[7532/7739] Linking CXX shared library lib/libclangCodeGenTargets.so.21.0git
FAILED: lib/libclangCodeGenTargets.so.21.0git 
: && /usr/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libclangCodeGenTargets.so.21.0git -o lib/libclangCodeGenTargets.so.21.0git tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARM.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AVR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/BPF.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/CSKY.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/DirectX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/HLSLBufferLayoutBuilder.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Hexagon.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Lanai.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/LoongArch.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/M68k.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/MSP430.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Mips.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/NVPTX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PNaCl.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PPC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/RISCV.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SPIR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Sparc.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SystemZ.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/TCE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/VE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/WebAssembly.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/X86.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/XCore.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib:"  lib/libLLVMCoverage.so.21.0git  lib/libLLVMFrontendDriver.so.21.0git  lib/libLLVMFrontendHLSL.so.21.0git  lib/libLLVMLTO.so.21.0git  lib/libLLVMPasses.so.21.0git  lib/libLLVMExtensions.so.21.0git  lib/libLLVMCoroutines.so.21.0git  lib/libLLVMHipStdPar.so.21.0git  lib/libLLVMipo.so.21.0git  lib/libLLVMFrontendOpenMP.so.21.0git  lib/libLLVMFrontendOffloading.so.21.0git  lib/libLLVMLinker.so.21.0git  lib/libLLVMIRPrinter.so.21.0git  lib/libLLVMInstrumentation.so.21.0git  lib/libLLVMCodeGenTypes.so.21.0git  lib/libLLVMObjCARCOpts.so.21.0git  lib/libLLVMScalarOpts.so.21.0git  lib/libLLVMAggressiveInstCombine.so.21.0git  lib/libLLVMInstCombine.so.21.0git  lib/libLLVMTarget.so.21.0git  lib/libLLVMTransformUtils.so.21.0git  lib/libLLVMBitWriter.so.21.0git  lib/libLLVMAnalys
tReader.so.21.0git  lib/libLLVMCore.so.21.0git  lib/libLLVMMC.so.21.0git  lib/libLLVMTargetParser.so.21.0git  lib/libLLVMSupport.so.21.0git  lib/libLLVMDemangle.so.21.0git  -Wl,-rpath-link,/home/botworker/bbot/amdgpu-offload-ubuntu-22-cmake-build-only/build/lib && :
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::~AMDGPUTargetCodeGenInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_123AMDGPUTargetCodeGenInfoD2Ev+0xf): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::~AMDGPUTargetCodeGenInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_123AMDGPUTargetCodeGenInfoD0Ev+0x13): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::isHomogeneousAggregateSmallEnough(clang::Type const*, unsigned long) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo33isHomogeneousAggregateSmallEnoughEPKN5clang4TypeEm+0x11): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo33isHomogeneousAggregateSmallEnoughEPKN5clang4TypeEm+0x1c): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::EmitVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, clang::CodeGen::AggValueSlot) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo9EmitVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x2a): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo9EmitVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x38): undefined reference to `clang::ASTContext::getTypeInfoInChars(clang::QualType) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo9EmitVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0xc1): undefined reference to `clang::CodeGen::emitVoidPtrVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, bool, clang::TypeInfoChars, clang::CharUnits, bool, clang::CodeGen::AggValueSlot, bool)'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::~AMDGPUABIInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_113AMDGPUABIInfoD2Ev+0xf): undefined reference to `clang::CodeGen::DefaultABIInfo::~DefaultABIInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::~AMDGPUABIInfo()':
AMDGPU.cpp:(.text._ZN12_GLOBAL__N_113AMDGPUABIInfoD0Ev+0x13): undefined reference to `clang::CodeGen::DefaultABIInfo::~DefaultABIInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::getNullPointer(clang::CodeGen::CodeGenModule const&, llvm::PointerType*, clang::QualType) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo14getNullPointerERKN5clang7CodeGen13CodeGenModuleEPN4llvm11PointerTypeENS1_8QualTypeE+0x1b): undefined reference to `clang::ASTContext::getTargetNullPointerValue(clang::QualType) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo14getNullPointerERKN5clang7CodeGen13CodeGenModuleEPN4llvm11PointerTypeENS1_8QualTypeE+0x45): undefined reference to `clang::ASTContext::getTargetAddressSpace(clang::LangAS) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUTargetCodeGenInfo::getGlobalVarAddressSpace(clang::CodeGen::CodeGenModule&, clang::VarDecl const*) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo24getGlobalVarAddressSpaceERN5clang7CodeGen13CodeGenModuleEPKNS1_7VarDeclE+0x4e): undefined reference to `clang::ASTContext::getTargetAddressSpace(clang::LangAS) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo24getGlobalVarAddressSpaceERN5clang7CodeGen13CodeGenModuleEPKNS1_7VarDeclE+0x8a): undefined reference to `clang::QualType::isNonConstantStorage(clang::ASTContext const&, bool, bool)'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_123AMDGPUTargetCodeGenInfo24getGlobalVarAddressSpaceERN5clang7CodeGen13CodeGenModuleEPKNS1_7VarDeclE+0xe4): undefined reference to `clang::VarDecl::hasConstantInitialization() const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::numRegsForType(clang::QualType) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x37): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x4c): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0xbc): undefined reference to `clang::Type::getUnqualifiedDesugaredType() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x106): undefined reference to `clang::TagType::getDecl() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x118): undefined reference to `clang::RecordDecl::field_begin() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x189): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo14numRegsForTypeEN5clang8QualTypeE+0x199): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o: in function `(anonymous namespace)::AMDGPUABIInfo::computeInfo(clang::CodeGen::CGFunctionInfo&) const':
AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x37): undefined reference to `clang::CodeGen::ABIInfo::getCXXABI() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0xae): undefined reference to `clang::CodeGen::useFirstFieldIfTransparentUnion(clang::QualType)'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x1b9): undefined reference to `clang::CodeGen::useFirstFieldIfTransparentUnion(clang::QualType)'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x1c4): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AMDGPU.cpp:(.text._ZNK12_GLOBAL__N_113AMDGPUABIInfo11computeInfoERN5clang7CodeGen14CGFunctionInfoE+0x1cf): undefined reference to `clang::CodeGen::isSingleElementStruct(clang::QualType, clang::ASTContext&)'

llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Apr 7, 2025
@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 7, 2025

LLVM Buildbot has detected a new failure on builder flang-aarch64-sharedlibs running on linaro-flang-aarch64-sharedlibs while building clang at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/80/builds/12287

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
239.886 [1780/44/5715] Building CXX object tools/clang/lib/Tooling/Refactoring/CMakeFiles/obj.clangToolingRefactoring.dir/Rename/USRLocFinder.cpp.o
239.889 [1780/43/5716] Building CXX object tools/clang/lib/Tooling/ASTDiff/CMakeFiles/obj.clangToolingASTDiff.dir/ASTDiff.cpp.o
239.894 [1780/42/5717] Building CXX object tools/clang/lib/Tooling/Syntax/CMakeFiles/obj.clangToolingSyntax.dir/Mutations.cpp.o
239.908 [1780/41/5718] Building CXX object tools/clang/lib/Tooling/Syntax/CMakeFiles/obj.clangToolingSyntax.dir/TokenBufferTokenManager.cpp.o
239.919 [1780/40/5719] Building CXX object tools/clang/lib/Tooling/Inclusions/CMakeFiles/obj.clangToolingInclusions.dir/IncludeStyle.cpp.o
239.921 [1780/39/5720] Building CXX object tools/clang/lib/Tooling/Syntax/CMakeFiles/obj.clangToolingSyntax.dir/Synthesis.cpp.o
239.925 [1780/38/5721] Building CXX object tools/clang/lib/Tooling/Syntax/CMakeFiles/obj.clangToolingSyntax.dir/Tree.cpp.o
239.926 [1780/37/5722] Building CXX object tools/clang/lib/Tooling/Syntax/CMakeFiles/obj.clangToolingSyntax.dir/ComputeReplacements.cpp.o
239.934 [1780/36/5723] Building CXX object tools/clang/lib/Tooling/Refactoring/CMakeFiles/obj.clangToolingRefactoring.dir/Rename/USRFinder.cpp.o
239.955 [1780/35/5724] Linking CXX shared library lib/libclangCodeGenTargetBuiltins.so.21.0git
FAILED: lib/libclangCodeGenTargetBuiltins.so.21.0git 
: && /usr/local/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libclangCodeGenTargetBuiltins.so.21.0git -o lib/libclangCodeGenTargetBuiltins.so.21.0git tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/ARM.cpp.o tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/AMDGPU.cpp.o tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/Hexagon.cpp.o tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/NVPTX.cpp.o tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/PPC.cpp.o tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/RISCV.cpp.o tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/SPIR.cpp.o tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/SystemZ.cpp.o tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/WebAssembly.cpp.o tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/X86.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/lib:"  lib/libLLVMCoverage.so.21.0git  lib/libLLVMFrontendDriver.so.21.0git  lib/libLLVMFrontendHLSL.so.21.0git  lib/libLLVMLTO.so.21.0git  lib/libLLVMPasses.so.21.0git  lib/libLLVMExtensions.so.21.0git  lib/libLLVMCoroutines.so.21.0git  lib/libLLVMHipStdPar.so.21.0git  lib/libLLVMipo.so.21.0git  lib/libLLVMFrontendOpenMP.so.21.0git  lib/libLLVMFrontendOffloading.so.21.0git  lib/libLLVMLinker.so.21.0git  lib/libLLVMIRPrinter.so.21.0git  lib/libLLVMInstrumentation.so.21.0git  lib/libLLVMCodeGenTypes.so.21.0git  lib/libLLVMObjCARCOpts.so.21.0git  lib/libLLVMScalarOpts.so.21.0git  lib/libLLVMAggressiveInstCombine.so.21.0git  lib/libLLVMInstCombine.so.21.0git  lib/libLLVMTarget.so.21.0git  lib/libLLVMTransformUtils.so.21.0git  lib/libLLVMBitWriter.so.21.0git  lib/libLLVMAnalysis.so.21.0git  lib/libLLVMProfileData.so.21.0git  lib/libLLVMObject.so.21.0git  lib/libLLVMIRReader.so.21.0git  lib/libLLVMBitReader.so.21.0git  lib/libLLVMCore.so.21.0git  lib/libLLVMMC.so.21.0git  lib/libLLVMTargetParser.so.21.0git  lib/libLLVMSupport.so.21.0git  lib/libLLVMDemangle.so.21.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-sharedlibs/build/lib && :
/usr/bin/ld: tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/ARM.cpp.o: in function `clang::CodeGen::CodeGenFunction::EmitFP8NeonCall(unsigned int, llvm::ArrayRef<llvm::Type*>, llvm::SmallVectorImpl<llvm::Value*>&, clang::CallExpr const*, char const*)':
ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction15EmitFP8NeonCallEjN4llvm8ArrayRefIPNS2_4TypeEEERNS2_15SmallVectorImplIPNS2_5ValueEEEPKNS_8CallExprEPKc+0x5c): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction15EmitFP8NeonCallEjN4llvm8ArrayRefIPNS2_4TypeEEERNS2_15SmallVectorImplIPNS2_5ValueEEEPKNS_8CallExprEPKc+0xd0): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/ARM.cpp.o: in function `clang::CodeGen::CodeGenFunction::LookupNeonLLVMIntrinsic(unsigned int, unsigned int, llvm::Type*, clang::CallExpr const*)':
ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction23LookupNeonLLVMIntrinsicEjjPN4llvm4TypeEPKNS_8CallExprE+0x88): undefined reference to `clang::CallExpr::getCallReturnType(clang::ASTContext const&) const'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction23LookupNeonLLVMIntrinsicEjjPN4llvm4TypeEPKNS_8CallExprE+0x94): undefined reference to `clang::CodeGen::CodeGenFunction::ConvertType(clang::QualType)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction23LookupNeonLLVMIntrinsicEjjPN4llvm4TypeEPKNS_8CallExprE+0x1d8): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/ARM.cpp.o: in function `clang::CodeGen::CodeGenFunction::EmitCommonNeonBuiltinExpr(unsigned int, unsigned int, unsigned int, char const*, unsigned int, clang::CallExpr const*, llvm::SmallVectorImpl<llvm::Value*>&, clang::CodeGen::Address, clang::CodeGen::Address, llvm::Triple::ArchType)':
ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction25EmitCommonNeonBuiltinExprEjjjPKcjPKNS_8CallExprERN4llvm15SmallVectorImplIPNS7_5ValueEEENS0_7AddressESD_NS7_6Triple8ArchTypeE+0x78): undefined reference to `clang::Expr::getIntegerConstantExpr(clang::ASTContext const&, clang::SourceLocation*) const'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction25EmitCommonNeonBuiltinExprEjjjPKcjPKNS_8CallExprERN4llvm15SmallVectorImplIPNS7_5ValueEEENS0_7AddressESD_NS7_6Triple8ArchTypeE+0xe8): undefined reference to `clang::CodeGen::CodeGenModule::getTargetCodeGenInfo()'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction25EmitCommonNeonBuiltinExprEjjjPKcjPKNS_8CallExprERN4llvm15SmallVectorImplIPNS7_5ValueEEENS0_7AddressESD_NS7_6Triple8ArchTypeE+0x1bc): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction25EmitCommonNeonBuiltinExprEjjjPKcjPKNS_8CallExprERN4llvm15SmallVectorImplIPNS7_5ValueEEENS0_7AddressESD_NS7_6Triple8ArchTypeE+0x214): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction25EmitCommonNeonBuiltinExprEjjjPKcjPKNS_8CallExprERN4llvm15SmallVectorImplIPNS7_5ValueEEENS0_7AddressESD_NS7_6Triple8ArchTypeE+0x2e4): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction25EmitCommonNeonBuiltinExprEjjjPKcjPKNS_8CallExprERN4llvm15SmallVectorImplIPNS7_5ValueEEENS0_7AddressESD_NS7_6Triple8ArchTypeE+0x3e4): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction25EmitCommonNeonBuiltinExprEjjjPKcjPKNS_8CallExprERN4llvm15SmallVectorImplIPNS7_5ValueEEENS0_7AddressESD_NS7_6Triple8ArchTypeE+0x4bc): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/ARM.cpp.o:ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction25EmitCommonNeonBuiltinExprEjjjPKcjPKNS_8CallExprERN4llvm15SmallVectorImplIPNS7_5ValueEEENS0_7AddressESD_NS7_6Triple8ArchTypeE+0x6a0): more undefined references to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)' follow
/usr/bin/ld: tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/ARM.cpp.o: in function `clang::CodeGen::CodeGenFunction::EmitCommonNeonBuiltinExpr(unsigned int, unsigned int, unsigned int, char const*, unsigned int, clang::CallExpr const*, llvm::SmallVectorImpl<llvm::Value*>&, clang::CodeGen::Address, clang::CodeGen::Address, llvm::Triple::ArchType)':
ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction25EmitCommonNeonBuiltinExprEjjjPKcjPKNS_8CallExprERN4llvm15SmallVectorImplIPNS7_5ValueEEENS0_7AddressESD_NS7_6Triple8ArchTypeE+0x1ca8): undefined reference to `clang::CodeGen::CodeGenFunction::ConvertType(clang::QualType)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction25EmitCommonNeonBuiltinExprEjjjPKcjPKNS_8CallExprERN4llvm15SmallVectorImplIPNS7_5ValueEEENS0_7AddressESD_NS7_6Triple8ArchTypeE+0x2390): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction25EmitCommonNeonBuiltinExprEjjjPKcjPKNS_8CallExprERN4llvm15SmallVectorImplIPNS7_5ValueEEENS0_7AddressESD_NS7_6Triple8ArchTypeE+0x248c): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction25EmitCommonNeonBuiltinExprEjjjPKcjPKNS_8CallExprERN4llvm15SmallVectorImplIPNS7_5ValueEEENS0_7AddressESD_NS7_6Triple8ArchTypeE+0x2670): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction25EmitCommonNeonBuiltinExprEjjjPKcjPKNS_8CallExprERN4llvm15SmallVectorImplIPNS7_5ValueEEENS0_7AddressESD_NS7_6Triple8ArchTypeE+0x2844): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/ARM.cpp.o: in function `emitCallMaybeConstrainedFPBuiltin(clang::CodeGen::CodeGenFunction&, unsigned int, unsigned int, llvm::Type*, llvm::ArrayRef<llvm::Value*>)':
ARM.cpp:(.text._ZL33emitCallMaybeConstrainedFPBuiltinRN5clang7CodeGen15CodeGenFunctionEjjPN4llvm4TypeENS3_8ArrayRefIPNS3_5ValueEEE+0x44): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/ARM.cpp.o:ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction18GetValueForARMHintEj+0x54): more undefined references to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)' follow
/usr/bin/ld: tools/clang/lib/CodeGen/TargetBuiltins/CMakeFiles/obj.clangCodeGenTargetBuiltins.dir/ARM.cpp.o: in function `clang::CodeGen::CodeGenFunction::EmitARMBuiltinExpr(unsigned int, clang::CallExpr const*, clang::CodeGen::ReturnValueSlot, llvm::Triple::ArchType)':
ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction18EmitARMBuiltinExprEjPKNS_8CallExprENS0_15ReturnValueSlotEN4llvm6Triple8ArchTypeE+0x84): undefined reference to `clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction18EmitARMBuiltinExprEjPKNS_8CallExprENS0_15ReturnValueSlotEN4llvm6Triple8ArchTypeE+0xa0): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction18EmitARMBuiltinExprEjPKNS_8CallExprENS0_15ReturnValueSlotEN4llvm6Triple8ArchTypeE+0x13c): undefined reference to `clang::Expr::EvaluateAsInt(clang::Expr::EvalResult&, clang::ASTContext const&, clang::Expr::SideEffectsKind, bool) const'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction18EmitARMBuiltinExprEjPKNS_8CallExprENS0_15ReturnValueSlotEN4llvm6Triple8ArchTypeE+0x1a0): undefined reference to `clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction18EmitARMBuiltinExprEjPKNS_8CallExprENS0_15ReturnValueSlotEN4llvm6Triple8ArchTypeE+0x1c0): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction18EmitARMBuiltinExprEjPKNS_8CallExprENS0_15ReturnValueSlotEN4llvm6Triple8ArchTypeE+0x208): undefined reference to `clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction18EmitARMBuiltinExprEjPKNS_8CallExprENS0_15ReturnValueSlotEN4llvm6Triple8ArchTypeE+0x22c): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction18EmitARMBuiltinExprEjPKNS_8CallExprENS0_15ReturnValueSlotEN4llvm6Triple8ArchTypeE+0x274): undefined reference to `clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction18EmitARMBuiltinExprEjPKNS_8CallExprENS0_15ReturnValueSlotEN4llvm6Triple8ArchTypeE+0x2a4): undefined reference to `clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction18EmitARMBuiltinExprEjPKNS_8CallExprENS0_15ReturnValueSlotEN4llvm6Triple8ArchTypeE+0x2d4): undefined reference to `clang::CodeGen::CodeGenFunction::EmitScalarExpr(clang::Expr const*, bool)'
/usr/bin/ld: ARM.cpp:(.text._ZN5clang7CodeGen15CodeGenFunction18EmitARMBuiltinExprEjPKNS_8CallExprENS0_15ReturnValueSlotEN4llvm6Triple8ArchTypeE+0x30c): undefined reference to `clang::CodeGen::CodeGenModule::getIntrinsic(unsigned int, llvm::ArrayRef<llvm::Type*>)'

@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 7, 2025

LLVM Buildbot has detected a new failure on builder flang-aarch64-latest-gcc running on linaro-flang-aarch64-latest-gcc while building clang at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/130/builds/12053

Here is the relevant piece of the build log for the reference
Step 5 (build-unified-tree) failure: build (failure)
...
      |                                                               ^
../llvm-project/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp: In static member function ‘static clang::ento::ProgramStateRef {anonymous}::EquivalenceClass::simplify(clang::ento::SValBuilder&, clang::ento::RangeSet::Factory&, clang::ento::ProgramStateRef, {anonymous}::EquivalenceClass)’:
../llvm-project/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp:2684:27: warning: possibly dangling reference to a temporary [-Wdangling-reference]
 2684 |       const llvm::APSInt &SV = CI->getValue();
      |                           ^~
../llvm-project/clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp:2684:45: note: the temporary was destroyed at the end of the full expression ‘CI.std::optional<clang::ento::nonloc::ConcreteInt>::operator->()->clang::ento::nonloc::ConcreteInt::getValue().clang::ento::APSIntPtr::operator const APSInt&()’
 2684 |       const llvm::APSInt &SV = CI->getValue();
      |                                             ^
668.389 [1759/62/5524] Linking CXX shared library lib/libMLIRTestDynDialect.so.21.0git
668.506 [1759/61/5525] Linking CXX shared library lib/libclangCodeGenTargets.so.21.0git
FAILED: lib/libclangCodeGenTargets.so.21.0git 
: && /usr/local/bin/c++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -fno-strict-aliasing -O3 -DNDEBUG  -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libclangCodeGenTargets.so.21.0git -o lib/libclangCodeGenTargets.so.21.0git tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AMDGPU.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/ARM.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AVR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/BPF.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/CSKY.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/DirectX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/HLSLBufferLayoutBuilder.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Hexagon.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Lanai.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/LoongArch.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/M68k.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/MSP430.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Mips.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/NVPTX.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PNaCl.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/PPC.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/RISCV.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SPIR.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/Sparc.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/SystemZ.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/TCE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/VE.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/WebAssembly.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/X86.cpp.o tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/XCore.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib:"  lib/libLLVMCoverage.so.21.0git  lib/libLLVMFrontendDriver.so.21.0git  lib/libLLVMFrontendHLSL.so.21.0git  lib/libLLVMLTO.so.21.0git  lib/libLLVMPasses.so.21.0git  lib/libLLVMExtensions.so.21.0git  lib/libLLVMCoroutines.so.21.0git  lib/libLLVMHipStdPar.so.21.0git  lib/libLLVMipo.so.21.0git  lib/libLLVMFrontendOpenMP.so.21.0git  lib/libLLVMFrontendOffloading.so.21.0git  lib/libLLVMLinker.so.21.0git  lib/libLLVMIRPrinter.so.21.0git  lib/libLLVMInstrumentation.so.21.0git  lib/libLLVMCodeGenTypes.so.21.0git  lib/libLLVMObjCARCOpts.so.21.0git  lib/libLLVMScalarOpts.so.21.0git  lib/libLLVMAggressiveInstCombine.so.21.0git  lib/libLLVMInstCombine.so.21.0git  lib/libLLVMTarget.so.21.0git  lib/libLLVMTransformUtils.so.21.0git  lib/libLLVMBitWriter.so.21.0git  lib/libLLVMAnalysis.so.21.0git  lib/libLLVMProfileData.so.21.0git  lib/libLLVMObject.so.21.0git  lib/libLLVMIRReader.so.21.0git  lib/libLLVMBitReader.so.21.0git  lib/libLLVMCore.so.21.0git  lib/libLLVMMC.so.21.0git  lib/libLLVMTargetParser.so.21.0git  lib/libLLVMSupport.so.21.0git  lib/libLLVMDemangle.so.21.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib && :
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: in function `(anonymous namespace)::AArch64TargetCodeGenInfo::~AArch64TargetCodeGenInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_124AArch64TargetCodeGenInfoD2Ev+0xc): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: in function `(anonymous namespace)::AArch64TargetCodeGenInfo::~AArch64TargetCodeGenInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_124AArch64TargetCodeGenInfoD0Ev+0x1c): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: in function `(anonymous namespace)::WindowsAArch64TargetCodeGenInfo::~WindowsAArch64TargetCodeGenInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_131WindowsAArch64TargetCodeGenInfoD2Ev+0xc): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: in function `(anonymous namespace)::WindowsAArch64TargetCodeGenInfo::~WindowsAArch64TargetCodeGenInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_131WindowsAArch64TargetCodeGenInfoD0Ev+0x1c): undefined reference to `clang::CodeGen::TargetCodeGenInfo::~TargetCodeGenInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: in function `(anonymous namespace)::AArch64ABIInfo::~AArch64ABIInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_114AArch64ABIInfoD2Ev+0xc): undefined reference to `clang::CodeGen::ABIInfo::~ABIInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: in function `(anonymous namespace)::AArch64ABIInfo::~AArch64ABIInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_114AArch64ABIInfoD0Ev+0x1c): undefined reference to `clang::CodeGen::ABIInfo::~ABIInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: in function `(anonymous namespace)::AArch64SwiftABIInfo::~AArch64SwiftABIInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_119AArch64SwiftABIInfoD2Ev+0xc): undefined reference to `clang::CodeGen::SwiftABIInfo::~SwiftABIInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: in function `(anonymous namespace)::AArch64SwiftABIInfo::~AArch64SwiftABIInfo()':
AArch64.cpp:(.text._ZN12_GLOBAL__N_119AArch64SwiftABIInfoD0Ev+0x1c): undefined reference to `clang::CodeGen::SwiftABIInfo::~SwiftABIInfo()'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: in function `(anonymous namespace)::AArch64ABIInfo::allowBFloatArgsAndRet() const':
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo21allowBFloatArgsAndRetEv+0x8): undefined reference to `clang::CodeGen::ABIInfo::getTarget() const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: in function `(anonymous namespace)::AArch64TargetCodeGenInfo::setTargetAttributes(clang::Decl const*, llvm::GlobalValue*, clang::CodeGen::CodeGenModule&) const':
AArch64.cpp:(.text._ZNK12_GLOBAL__N_124AArch64TargetCodeGenInfo19setTargetAttributesEPKN5clang4DeclEPN4llvm11GlobalValueERNS1_7CodeGen13CodeGenModuleE+0x90): undefined reference to `clang::Decl::getAttrs() const'
/usr/bin/ld: AArch64.cpp:(.text._ZNK12_GLOBAL__N_124AArch64TargetCodeGenInfo19setTargetAttributesEPKN5clang4DeclEPN4llvm11GlobalValueERNS1_7CodeGen13CodeGenModuleE+0x1c0): undefined reference to `clang::CodeGen::TargetCodeGenInfo::setBranchProtectionFnAttributes(clang::TargetInfo::BranchProtectionInfo const&, llvm::Function&)'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: in function `(anonymous namespace)::WindowsAArch64TargetCodeGenInfo::setTargetAttributes(clang::Decl const*, llvm::GlobalValue*, clang::CodeGen::CodeGenModule&) const':
AArch64.cpp:(.text._ZNK12_GLOBAL__N_131WindowsAArch64TargetCodeGenInfo19setTargetAttributesEPKN5clang4DeclEPN4llvm11GlobalValueERNS1_7CodeGen13CodeGenModuleE+0x5c): undefined reference to `clang::CodeGen::TargetCodeGenInfo::addStackProbeTargetAttributes(clang::Decl const*, llvm::GlobalValue*, clang::CodeGen::CodeGenModule&) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: in function `clang::VectorType const* clang::Type::getAs<clang::VectorType>() const [clone .part.0]':
AArch64.cpp:(.text._ZNK5clang4Type5getAsINS_10VectorTypeEEEPKT_v.part.0+0x34): undefined reference to `clang::Type::getUnqualifiedDesugaredType() const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: in function `(anonymous namespace)::AArch64ABIInfo::isIllegalVectorType(clang::QualType) const':
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo19isIllegalVectorTypeEN5clang8QualTypeE+0x68): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo19isIllegalVectorTypeEN5clang8QualTypeE+0x70): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo19isIllegalVectorTypeEN5clang8QualTypeE+0x98): undefined reference to `clang::CodeGen::ABIInfo::getTarget() const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: in function `(anonymous namespace)::AArch64ABIInfo::isHomogeneousAggregateBaseType(clang::QualType) const':
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo30isHomogeneousAggregateBaseTypeEN5clang8QualTypeE+0xa4): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'
/usr/bin/ld: AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo30isHomogeneousAggregateBaseTypeEN5clang8QualTypeE+0xac): undefined reference to `clang::ASTContext::getTypeInfo(clang::Type const*) const'
/usr/bin/ld: tools/clang/lib/CodeGen/Targets/CMakeFiles/obj.clangCodeGenTargets.dir/AArch64.cpp.o: in function `(anonymous namespace)::AArch64ABIInfo::EmitMSVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, clang::CodeGen::AggValueSlot) const':
AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo11EmitMSVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x4c): undefined reference to `clang::CodeGen::isAggregateTypeForABI(clang::QualType)'
/usr/bin/ld: AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo11EmitMSVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x6c): undefined reference to `clang::ASTContext::getTypeInfoInChars(clang::QualType) const'
/usr/bin/ld: AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo11EmitMSVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0xc8): undefined reference to `clang::CodeGen::emitVoidPtrVAArg(clang::CodeGen::CodeGenFunction&, clang::CodeGen::Address, clang::QualType, bool, clang::TypeInfoChars, clang::CharUnits, bool, clang::CodeGen::AggValueSlot, bool)'
/usr/bin/ld: AArch64.cpp:(.text._ZNK12_GLOBAL__N_114AArch64ABIInfo11EmitMSVAArgERN5clang7CodeGen15CodeGenFunctionENS2_7AddressENS1_8QualTypeENS2_12AggValueSlotE+0x108): undefined reference to `clang::CodeGen::ABIInfo::getContext() const'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend:AMDGPU clang:codegen IR generation bugs: mangling, exceptions, etc. clang Clang issues not falling into any other category HLSL HLSL Language Support
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

[MacOS 15][AppleClang] libtool duplicate member name warnings
5 participants